import request from '@/utils/request'

export const add = function(params){
  return request({
    url: '/social_media/add',
    method: 'post',
    data: params,
  })
}

export const list = function(params){
  return request({
    url: '/social_media/list',
    method: 'get',
    params: params,
  })
}


export const editGet = function(params){
  return request({
    url: '/social_media/edit',
    method: 'get',
    params: params,
  })
}

export const editPost = function(params){
  return request({
    url: '/social_media/edit',
    method: 'post',
    data: params,
  })
}

export const del = function(params){
  return request({
    url: '/social_media/del',
    method: 'post',
    data: params,
  })
}
